<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>建筑物信息 / 新增</h3></div>
                <div class="fr hidden">
                    <form class="search-form" method="post" action="">
                        <input name="field" value="{$filter.field}" type="text" />
                        <input name="value" value="{$filter.value}" type="text" />
                        <input name="page" value="{$filter.page}" type="hidden" />
                        <input name="order_field" value="{$filter.order_field}" type="hidden" />
                        <input name="order_sort" value="{$filter.order_sort}" type="hidden" />
                        <button class="btn-normal" type="submit">查 询</button>
                    </form>
                </div>
            </div>
            <div class="line2">
                <div class="fl form-btn-group">
                    <in name="$x|default='02-03-04'" value="$rightsCode">
                        <button onclick="submitForm();" class="btn-save btn-highlight">保 存</button>
                        <else />
                        <button disabled="disabled" class="btn-save btn-disable">保 存</button>
                    </in>
                    <span>或</span>
                    <a class="linkBtn btn-abort" href="/admin/building/index">放弃</a>
                </div>
            </div>
        </div>
    </div>
    <div class="form-box2">
        <div>
            <form id="buildingForm" method="post" action="">
                <input type="hidden" name="id" id="id" value="{$building.id}" />
                <table class="form">
                    <tr>
                        <th width="15%">建筑物名称<span class="hint">*</span></th>
                        <td width="35%"><input name="name" type="text" value="{$building.name}" /> </td>
                        <th width="15%">小区名称<span class="hint">*</span></th>
                        <td>
                            <select name="community_id">
                                <option></option>
                                <volist name="community" id="vo">
                                <if condition="$vo[id] eq $building[community_id]">
                                    <option selected="selected" value="{$vo.id}">{$vo.name}</option>
                                    <else />
                                    <option value="{$vo.id}">{$vo.name}</option>
                                </if>
                                </volist>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>编号</th>
                        <td><input name="no" type="text" value="{$building.no}" /> </td>
                        <th>层数</th>
                        <td><input name="floors" type="text" value="{$building.floors}" /> </td>
                    </tr>
                    <tr>
                        <th>竣工年份</th>
                        <td><input name="deadline" type="text" value="{$building.deadline}" /> </td>
                        <th>备注</th>
                        <td><textarea placeholder="请输入备注信息" style="width:210px;" name="remarks">{$building.remarks}</textarea></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
<script src="__JS__/building.js" type="text/javascript" ></script>
<include file="Public:footer" />
